package com.jshcbd.modules.asset.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jshcbd.modules.asset.entity.AddressEntity;
import com.jshcbd.modules.asset.entity.CompanyEntity;
import com.jshcbd.modules.asset.mapper.AddressMapper;
import com.jshcbd.modules.asset.mapper.CompanyMapper;
import com.jshcbd.modules.asset.service.IAddressService;
import com.jshcbd.modules.asset.service.ICompanyService;
import com.jshcbd.modules.asset.vo.AddressVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhoucd
 * @date
 * @description
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, AddressEntity> implements IAddressService {

    @Autowired
    private AddressMapper addressMapper;


    @Override
    public IPage<AddressVo> pageView(Page<AddressVo> page, Wrapper wrapper) {
        return addressMapper.queryPageView(page,wrapper);
    }

    @Override
    public AddressVo getViewById(String id) {
        return addressMapper.queryViewById(id);
    }

    @Override
    public AddressVo getViewByRFID(String rfid) {
        return addressMapper.queryViewByRFID(rfid);
    }
}
